3 subject="""comment 1"""
4 date="2023-11-21T20:03:45Z"
6 Hmm, I've never considered combining --quiet with --json. It's kind of
7 undefined and really not clear to me what it should do.
9 But, --json-error-messages makes the json contain an error-messages field,
10 and the error message is in there. So you can just extract that and ignore
11 the other messages in the json output. No need to use --quiet then.
13 I suppose there may be someone who uses --json as a matter of course, but
14 adds --quiet to that when they want to disable the json output. So
15 changing the current behavior, ill-defined as it is, would be asking for
18 What actually happens currently is which ever output option comes last
19 overrides earlier options. So `--json --quiet` is quiet, and `--quiet
20 --json` outputs json. `--json-error-messages` is like `--json` in this
21 regard to. Which is just behavior that fell out of the option parser